import request from '@/utils/request'
export function FUNC(func, data) {
	return request({
		url: `${import.meta.env.VITE_APP_ENV === "production" ? "" : "/device"}/func.php?func=${func}`,
		headers: {
		  isToken: false,
		  'Content-Type': 'application/x-www-form-urlencoded'
		},
		method: 'post',
		data: data
	  })
}

export default FUNC;
